package com.shop.shoporder.mapper.order;


import com.shop.shoporder.entity.order.Area;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AreaMapper {
    int deleteByPrimaryKey(int id);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(int id);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);
    List<Area> selectAddressByParentId(int id);

    List<Area> selectAreaList(@Param("parentId") int parentId, @Param("level") int level);

}